<?
/*
 * @name check_email.php
 * @creater Charles Koh
 * 
 */
   $email = $_POST['email'];
   
   if(!$email) 
   {
      echo("No input e-mail");
   }
   else
   {
      include "../../server/dbconn.php";
 
      $sql = "select * from member where id='$email' ";

      $result = @mysql_query($sql, $connect);
      $num_record = @mysql_num_rows($result);

      if ($num_record)
      {
         echo "This e-mail is registered.<br>";
      }
      else
      {
         echo "You can to register your e-mail.";
      }
    
      mysql_close();
   }
?>

